<?php
namespace app\index\validate;
use think\Validate;

/**
 * Created by PhpStorm.
 * User: admin
 * Date: 2017/11/13
 * Time: 12:57
 */
class MessageValidate extends Validate
{

    protected $rule = [
        'title'  =>  'require',
        'name' =>  'require',
        'tel'  =>  'require',
//        'address' =>  'require',
        'content' =>  'require',
    ];

    protected $message = [
        'title.require' => '请输入主题',
        'name.require' => '请输入联系人',
        'tel.require' => '请输入联系电话',
//        'address.require' => '请输入地址',
        'content.require' => '请输入内容',
    ];


}